home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11243 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  689 b 

  1. Path: pip.zfe.siemens.de!not-for-mail
  2. From: wscomp@pip.zfe.siemens.de (Marquart C. Franz)
  3. Newsgroups: comp.lang.c++
  4. Subject: Template cast
  5. Date: 13 Mar 1996 13:48:08 GMT
  6. Organization: Siemens AG, Neu_Perlach-Munich-Germany-Europe.
  7. Message-ID: <4i6jmo$rci@salomon.zfe.siemens.de>
  8. NNTP-Posting-Host: pip.zfe.siemens.de
  9. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  10.  
  11. Hite<T2> to MyTemplate<T1>.
  12.  
  13. We have the following problem:
  14. We got two instantiations of a template <class T> class MyTemplate
  15. which are MyTemplate<T1> and MyTemplate<T2> with T1 subclass of T2.
  16. Now we want to cast from MyTemplate<T2> to MyTemplate<T1>.
  17.  
  18. Any ideas recommended ... Thanx a lot ! 
  19.  
  20. thilo.ruf@zfe.siemens.de  
  21.